# -*- coding: utf-8 -*-
# @Time    : 2021/11/13 20:18
# @Author  : travel2040
# @Email   : travel2040@163.com
# @File    : xlrd-读取excel文件.py
# 需要安装的库
# pip install xlrd

import xlrd

data = xlrd.open_workbook("data/excel.xlsx")
table = data.sheet_by_index(0)

for rowNum in range(table.nrows):
    if rowNum > 0:
        rows = table.row_values(rowNum)
        print(rows[0])  # 第一列
        print(rows[1])  # 第二列